﻿<%@ Page Language="C#" MasterPageFile="~/_layouts/application.master" Inherits="TPG.SharePoint.Workflow.BulkTaskList, TPG.SharePoint.Workflow, Culture=neutral, Version=1.0.0.0, PublicKeyToken=d3a33f5f62ef53ef" %>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">    
Workflow Task Selection
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
Workflow Task Selection
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<p>The following workflows have tasks which can be edited in bulk. Please select the workflow and task that you wish to edit:</p>
    <asp:Repeater ID="Associations" OnItemDataBound="Associations_ItemDataBound" runat="server">
        <HeaderTemplate>
            <ul>
        </HeaderTemplate>
        <FooterTemplate>
            </ul></FooterTemplate>
        <ItemTemplate>
            <li>
                <asp:Label Text='<%# Eval("Name") %>' runat="server" />
                <asp:Repeater ID="Tasks" runat="server">
                    <HeaderTemplate>
                        <ul>
                    </HeaderTemplate>
                    <FooterTemplate>
                        </ul></FooterTemplate>
                    <ItemTemplate>
                        <li>
                          <asp:HyperLink NavigateUrl='<%# FormatUrl((Guid)Eval("AssocId"), (int)Eval("TaskType")) %>' Text='<%# Eval("Name") %>' runat="server" />
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </li>
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>
